import App from './App'
import Vue from 'vue'
import './uni.promisify.adaptor'
// 1. 导入 store 的实例对象
import store from '@/store/store.js'
import uView from '@/uni_modules/uview-ui';
Vue.use(uView);
import * as api from '@/api/api.js'
import shareMsg from './utils/shareMsg.js'
import {
	handleTree
} from "./utils/tool";
// 引入全局uView

Vue.prototype.handleTree = handleTree
Vue.prototype.$imgUrlTwo = '/static/img/' //本地图片地址
Vue.prototype.$imgUrl = '/static/img/'//线上图片地址
Vue.prototype.$store = store
Vue.prototype.$api = api
Vue.mixin(shareMsg)


Vue.config.productionTip = false

App.mpType = 'app'

const app = new Vue({
	...App,
	// 2. 将 store 挂载到 Vue 实例上
	store
})

// 引入请求封装，将app参数传递到配置中
require('@/config/request.js')(app)

app.$mount();